You can configure this preview window to work with your web server, but you must have a local or remote web server to publish your PHP file.
To enable PHP file preview on your web server:
Note: If you use remote web server, you must always upload/save your file to corresponding FTP account before previewing it.
To be able to preview PHP files locally without uploading to web, you need to have a web server installed on your computer and it must be configured to support PHP files. Please refer to PHP and web server manuals for more info on installing web server with PHP support.
We recommend to use the free Apache web server from apache.org
Step 1 - What is your document root?
Find out what is your local web server document root folder.
The document root folder stores web page files available via your web server URL.
Please refer to your web server manual for more info.
Step 2 - What is your web server address?
Find out what is your local web server URL, usually it is http://localhost/
Step 3 - Make sure your web server works
Verify that your web server really works with PHP files.
To do this, save a PHP file to your web document root and try
to open it via web browser. For example, if your web document
root is c:\htdocs\, save your file as c:\htdocs\index.php and
try to open it via URL http://localhost/index.php
If your web server works, you are now ready to configure internal preview.
Step 4 รป Configure internal preview
Now you must tell the editor software how to use your web server to
display the PHP file preview.